package com.wonders.hisdoctor.station.project.hisqueue.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wonders.his.common.utils.validator.group.PrimaryGroup;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>诊断说明书表</p>
 * <p>db_table: DIAGNOSIS_EXPLAIN</p>
 * @author zhanghaonan
 * @date 2021/06/21
 */
@ApiModel("诊断说明书表")
@Accessors(chain = true)
@Data
@ToString
@TableName("DIAGNOSIS_EXPLAIN")
public class DiagnosisExplain implements Serializable {

    private static final long serialVersionUID = 1440239654499660081L;

    /** `主键` db_field: VISIT_DATE; desc: 就诊时间 */
    @ApiModelProperty("就诊时间")
    @NotNull(message = "就诊时间不能为空", groups = PrimaryGroup.class)
    @TableField("VISIT_DATE")
    @JsonFormat(pattern = "yyyy/MM/dd",timezone="GMT+8")
    private Date visitDate;

    /** `主键` db_field: VISIT_NO; desc: 就诊序号 */
    @ApiModelProperty("就诊序号")
    @NotNull(message = "就诊序号不能为空", groups = PrimaryGroup.class)
    @TableField("VISIT_NO")
    private Integer visitNo;

    /** db_field: PATIENT_ID; desc: 病人标识号 */
    @ApiModelProperty("病人标识号")
    @TableField("PATIENT_ID")
    private String patientId;

    /** db_field: NAME; desc: 姓名：病人姓名 */
    @ApiModelProperty("姓名：病人姓名")
    @TableField("NAME")
    private String name;

    /** db_field: DIAGNOSIS_CODE; desc: 诊断代码 */
    @ApiModelProperty("诊断代码")
    @TableField("DIAGNOSIS_CODE")
    private String diagnosisCode;

    /** db_field: DIAGNOSIS_NAME; desc: 诊断名称 */
    @ApiModelProperty("诊断名称")
    @TableField("DIAGNOSIS_NAME")
    private String diagnosisName;

    /** db_field: DEPT_CODE; desc: 科室代码 */
    @ApiModelProperty("科室代码")
    @TableField("DEPT_CODE")
    private String deptCode;

    /** db_field: DEPT_NAME; desc: 科室名称 */
    @ApiModelProperty("科室名称")
    @TableField("DEPT_NAME")
    private String deptName;

    /** `主键` db_field: DOCTOR; desc: 医生ID */
    @ApiModelProperty("医生ID")
    @NotBlank(message = "医生ID不能为空", groups = PrimaryGroup.class)
    @TableField("DOCTOR")
    private String doctor;

    /** db_field: DOCTOR_NAME; desc: 医生名称 */
    @ApiModelProperty("医生名称")
    @TableField("DOCTOR_NAME")
    private String doctorName;

    /** db_field: DOCTOR_DEAL; desc: 医生处理 */
    @ApiModelProperty("医生处理")
    @TableField("DOCTOR_DEAL")
    private String doctorDeal;

    /** db_field: REGISTER_DATE; desc: 登记日期 */
    @ApiModelProperty("登记日期")
    @TableField("REGISTER_DATE")
    @JsonFormat(pattern = "yyyy/MM/dd",timezone="GMT+8")
    private Date registerDate;

}